<template>
	<view>
		<!-- 未登录时的用户中心页面 -->
		<view class="unlogin">
			<view class="u-f-ajc login-msg">
				登录后体验更多功能
			</view>
			<view>
				<button class="login-btn" @click="login">登录</button>
			</view>
			<view>
				<button class="register-btn" @click="register">注册</button>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			login(){
				console.log('登录成功！');
				uni.switchTab({
					url:"user_logined",
					success() {
						console.log("跳转成功");
						return true;
					}
				})
			},
			register(){
				uni.navigateTo({
					url:"../login/register",
					success() {
						console.log("跳转成功");
						return true;
					}
				})
			}
		}
	}
</script>

<style>
	@import url("/static/css/uni.css");
	.unlogin{
		padding-top:45%;
	}
	.login-msg{
		font-size: 35upx;
		font-weight: bold;
	}
	.login-btn{
		margin: 15upx 50upx;
		background: #0A98D5;
		color: #FFFFFF;
	}
	.register-btn{
		margin: 15upx 50upx;
		background: #09BB07;
		color: #FFFFFF;
	}
</style>
